import java.io.*;

public class ChangeTest {
    public static void main(String[] args) {
        try (
                // 1. 原始字节流
                InputStream is=new FileInputStream("IO_src/changGBK.txt");
                // 2. 转换流
                Reader isr=new InputStreamReader(is,"GBK");
                // 3. 缓冲字符输入流
                BufferedReader br=new BufferedReader(isr);
                ){
            String line;
            while((line=br.readLine())!=null){
                System.out.println(line);
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
